package br.ita.model.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="login")
public class Login implements java.io.Serializable {

     private Integer idLogin;
     private String email;
     private String idPerfil;
     private String token;
     private String nome;

    public Login() {
    }

    public Login(String email, String idPerfil, String nome) {
       this.email = email;
       this.idPerfil = idPerfil;
       this.nome = nome;
    }
   
    @Id 
    @GeneratedValue(strategy = IDENTITY)
    @Column(name="idlogin")
    public Integer getidLogin() {
        return this.idLogin;
    }
    
    public void setidLogin(Integer idLogin) {
        this.idLogin = idLogin;
    }
    
    @Column(name="nome", nullable=false, length=255)
    public String getNome() {
        return this.nome;
    }
    
    public void setNome(String nome) {
        this.nome = nome;
    }
    
    @Column(name="token", nullable=true, length=255)
    public String getToken() {
        return this.token;
    }
    
    public void setToken(String token) {
        this.token = token;
    }
    
    @Column(name="id_perfil", nullable=false, length=45)
    public String getIdPerfil() {
        return this.idPerfil;
    }
    
    public void setIdPerfil(String idPerfil) {
        this.idPerfil = idPerfil;
    }
    
    @Column(name="email", nullable=false, length=45)
    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
}